home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 November: Tool Chest / Dev.CD Nov 00 TC Disk 1.toast / Sample Code / Archive / Graphics / QuickDraw GX / IW-Half-Dither / IW-Half-Dither.make < prev    next >
Encoding:
Text File  |  2000-09-28  |  5.9 KB  |  174 lines  |  [TEXT/MPS ]

  1. #
  2. #    File:        IW-Half-Dither.make
  3. #
  4. #    Contains:    Makefile for the sample ImageWriter II driver.
  5. #
  6. #    Copyright:    © 1983-1996 by Apple Computer, Inc., all rights reserved.
  7. #
  8. #    Change History (most recent first):
  9. #
  10. #
  11. #                05/21/96    Don Swatman    Modifications for halftoning, dithering and plane seperations.
  12. #                05/21/96    Jason H-H    Updated for ETO#19/MW.
  13. #                 8/26/94    dmh        Finalized.
  14. #                 3/22/94    dmh        Modified for the b4 seed.
  15. #                12/18/93    dmh        Modified for the b3 seed.
  16. #                 9/12/93    dmh        Modified for the b2 seed.
  17. #                 4/26/93    dmh        Modified for the b1 seed.
  18. #                 2/04/93    dmh        Modified for the a5 seed.
  19. #         <5>    10/22/92    DB        Added changes for version control
  20. #
  21. #
  22.  
  23. #======= Point these variables to your interface and library directories =======
  24.  
  25. GXLibrariesSources    =    "{MPW}Libraries:GX Libraries:"
  26.  
  27. #========== Directories Containing Source and Object Files ==========
  28.  
  29. ObjDir                    =    :Objects:
  30. SrcDir                    =    :source:
  31. DestDir                    =    
  32.  
  33. #========== Compiler Options ==========
  34.  
  35. AsmOptions                =    -case obj
  36. RezOptions                =    -i "{Rincludes}" -d SystemSevenOrLater=1
  37. COptions                =    -d applec -b2 -i "{cIncludes}" -i {GXLibrariesSources}
  38. LinkOptions                =    -ra =resSysHeap,resPurgeable
  39. SC                        =    C
  40.  
  41. DriverName         = "IW-Half-Dither"
  42. DriverType         = 'pdvr'
  43. DriverCreator     = 'Dipy'
  44. NewSegID        = 0
  45. OldSegID        = 1
  46.  
  47. # Compile and assemble statements
  48. {ObjDir}OldApp.c.o ƒƒ {SrcDir}OldApp.c {SrcDir}CommonDefines.h
  49.     Echo "{DriverName}: Compiling old application"
  50.     {C} {COptions} -o {ObjDir} {SrcDir}OldApp.c
  51.  
  52. {ObjDir}OldApp.a.o    ƒ     {SrcDir}OldApp.a
  53.     Echo "{DriverName}: Assembling old app jump table"
  54.     Asm {AsmOptions} {MakeJumpTable} {SrcDir}OldApp.a -o {ObjDir}
  55.  
  56. {ObjDir}NewApp.c.o    ƒ {SrcDir}NewApp.c {SrcDir}CommonDefines.h
  57.     Echo "{DriverName}: Compiling new application"
  58.     {C} {COptions} -o {ObjDir} {SrcDir}NewApp.c
  59.  
  60. {ObjDir}NewApp.a.o    ƒ     {SrcDir}NewApp.a
  61.     Echo "{DriverName}: Assembling new app jump table"
  62.     Asm {AsmOptions} {MakeJumpTable} {SrcDir}NewApp.a -o {ObjDir}
  63.  
  64. {ObjDir}ChooserSupportLDEF.c.o    ƒ {SrcDir}ChooserSupportLDEF.c {SrcDir}CommonDefines.h
  65.     Echo "{DriverName}: Compiling Chooser support"
  66.     {C} {COptions} -o {ObjDir} {SrcDir}ChooserSupportLDEF.c
  67.  
  68. {ObjDir}ChooserSupportPACK.c.o    ƒ {SrcDir}ChooserSupportPACK.c {SrcDir}CommonDefines.h
  69.     Echo "{DriverName}: Compiling Chooser support"
  70.     {C} {COptions} -o {ObjDir} {SrcDir}ChooserSupportPACK.c
  71.  
  72. {ObjDir}ChooserSupport.a.o    ƒ     {SrcDir}ChooserSupport.a
  73.     Echo "{DriverName}: Assembling Chooser support"
  74.     Asm {AsmOptions} {MakeJumpTable} {SrcDir}ChooserSupport.a -o {ObjDir}
  75.  
  76. # Link and Rez statements
  77. {DestDir}{DriverName} ƒƒ {SrcDir}OldApp.r {SrcDir}CommonDefines.h
  78.      Echo "{DriverName}: Rezzing old application"
  79.      Rez {RezOptions} -append -o {DestDir}{DriverName} {SrcDir}OldApp.r
  80.     SetFile -a Bi -t {DriverType} -c {DriverCreator} {DestDir}{DriverName}
  81.         
  82. {DestDir}{DriverName} ƒƒ {ObjDir}OldApp.c.o
  83.     Echo "{DriverName}: Linking old application"
  84.     SetFile -a Bi -t {DriverType} -c {DriverCreator} {DestDir}{DriverName}
  85.  
  86. "{ObjDir}TextLibrary.c.o"        ƒ {GXLibrariesSources}TextLibrary.c
  87.     Echo "compiling TextLibrary.c"
  88.     {C} {COptions} -o {ObjDir} {GXLibrariesSources}TextLibrary.c
  89.  
  90. "{ObjDir}PictureLibrary.c.o"    ƒ {GXLibrariesSources}PictureLibrary.c
  91.     Echo "compiling PictureLibrary.c"
  92.     {C} {COptions} -o {ObjDir} {GXLibrariesSources}PictureLibrary.c
  93.  
  94. "{ObjDir}ColorLibrary.c.o"        ƒ {GXLibrariesSources}ColorLibrary.c
  95.     Echo "compiling ColorLibrary.c"
  96.     {C} {COptions} -o {ObjDir} {GXLibrariesSources}ColorLibrary.c
  97.  
  98. "{ObjDir}GraphicsLibrary.c.o"    ƒ {GXLibrariesSources}GraphicsLibrary.c
  99.     Echo "compiling GraphicsLibrary.c"
  100.     {C} {COptions} -o {ObjDir} {GXLibrariesSources}GraphicsLibrary.c
  101.  
  102. {DestDir}{DriverName} ƒƒ {SrcDir}NewApp.r {SrcDir}CommonDefines.h
  103.      Echo "{DriverName}: Rezzing new application"
  104.      Rez {RezOptions} -append -o {DestDir}{DriverName} {SrcDir}NewApp.r
  105.     SetFile -a Bi -t {DriverType} -c {DriverCreator} {DestDir}{DriverName}
  106.  
  107. {DestDir}{DriverName} ƒƒ                         ∂
  108.     {ObjDir}NewApp.a.o                            ∂
  109.     {ObjDir}NewApp.c.o                            ∂
  110.         "{ObjDir}TextLibrary.c.o"                ∂
  111.         "{ObjDir}PictureLibrary.c.o"            ∂
  112.         "{ObjDir}ColorLibrary.c.o"                ∂
  113.         "{ObjDir}GraphicsLibrary.c.o"            
  114.     Echo "{DriverName}: linking new API"
  115.     Link                                        ∂
  116.         -rt {DriverType}={NewSegID}                ∂
  117.         -c {DriverCreator}                        ∂
  118.         -t {DriverType}                            ∂
  119.         -sg {DriverName}                        ∂
  120.         -m SD_JumpTable                            ∂
  121.         -o {DestDir}{DriverName}                ∂
  122.         {ObjDir}NewApp.a.o                        ∂
  123.         {ObjDir}NewApp.c.o                        ∂
  124.         "{ObjDir}TextLibrary.c.o"                ∂
  125.         "{ObjDir}PictureLibrary.c.o"            ∂
  126.         "{ObjDir}ColorLibrary.c.o"                ∂
  127.         "{ObjDir}GraphicsLibrary.c.o"            ∂
  128.         "{Libraries}Interface.o"                 ∂
  129.         "{Libraries}MacRuntime.o"                 ∂
  130.         {LinkOptions}                            
  131.     SetFile -a Bi -t {DriverType} -c {DriverCreator} {DestDir}{DriverName}
  132.  
  133. {DestDir}{DriverName} ƒƒ                         ∂
  134.     {ObjDir}OldApp.a.o                            ∂
  135.     {ObjDir}OldApp.c.o
  136.     Echo "{DriverName}: linking old API"
  137.     Link                                        ∂
  138.         -rt {DriverType}={OldSegID}                ∂
  139.         -c {DriverCreator}                        ∂
  140.         -t {DriverType}                            ∂
  141.         -sg {DriverName}                        ∂
  142.         -m SD_JumpTable                            ∂
  143.         -o {DestDir}{DriverName}                ∂
  144.         {ObjDir}OldApp.a.o                        ∂
  145.         {ObjDir}OldApp.c.o                        ∂
  146.         "{Libraries}MacRuntime.o"                 ∂
  147.         "{Libraries}Interface.o"                 ∂
  148.         {LinkOptions}                            
  149.     SetFile -a Bi -t {DriverType} -c {DriverCreator} {DestDir}{DriverName}
  150.  
  151. {DestDir}{DriverName} ƒƒ {SrcDir}ChooserSupport.r {SrcDir}CommonDefines.h
  152.     Echo "{DriverName}: Rezzing Chooser resources"
  153.     Rez {RezOptions} -append -o {DestDir}{DriverName} {SrcDir}ChooserSupport.r
  154.     SetFile -a Bi -t {DriverType} -c {DriverCreator} {DestDir}{DriverName}
  155.  
  156. {DestDir}{DriverName} ƒƒ                         ∂
  157.     {ObjDir}ChooserSupport.a.o                    ∂
  158.     {ObjDir}ChooserSupportPACK.c.o
  159.     Echo "{DriverName}: Linking PACK"
  160.     Link                                        ∂
  161.         -ra =resSysHeap,resPurgeable            ∂
  162.         -rt PACK=-4096                            ∂
  163.         -sg PrintingPACK                        ∂
  164.         -m EntryPoint                            ∂
  165.         -o {Targ}                                ∂
  166.         {ObjDir}ChooserSupport.a.o                ∂
  167.         {ObjDir}ChooserSupportPACK.c.o                
  168.  
  169. {DestDir}{DriverName}    ƒƒ {ObjDir}ChooserSupportLDEF.c.o
  170.     Echo "{DriverName}: Linking LDEF"
  171.     Link -w -ra =resSysHeap,resPurgeable        ∂
  172.             -rt LDEF=-4096 -sg LDEF        ∂
  173.             -o {Targ} {ObjDir}ChooserSupportLDEF.c.o
  174.